import Mock from "mockjs"
import jwt from "jsonwebtoken"
let token = 'Bearer ' +
    jwt.sign({
        foo: 'bar'
    }, 'shhhhh');
Mock.mock("/list",{
    "list|7":[{
        "id":"@id",
        "title":"@ctitle(2,3)",
        "children|20":[{
            "title":"@ctitle(4,6)",
            "img":"@image(100x100,@color)"
        }]
    }]
})
Mock.mock("/login",{
    code:200,
    message:"登录成功",
    data:token
})